package com.zhongxiangspace.service;

import com.zhongxiangspace.entity.QueryAnalyzer;
import com.zhongxiangspace.entity.StationBranch;
import com.zhongxiangspace.entity.StationHouse;
import com.zhongxiangspace.entity.StationIcon;

import java.util.List;
import java.util.Map;

/**
 * 工位
 */
public interface StationBranchService {


    /**
     * 工位服务icon
     * @param type
     * @return
     */
    List<StationIcon> queryIcon(String type);

    /**
     * 插入
     * @param stationBranch
     * @return
     */
    boolean insert(StationBranch stationBranch);

    /**
     * 条件查询数
     * @param queryAnalyzer
     * @return
     */
    List<Map<String, Object>> queryAll(QueryAnalyzer queryAnalyzer);

    /**
     *查询单条
     * @param id
     * @return
     */
    StationBranch queryOne(Integer id);

    /**
     * 更新data
     * @param stationBranch
     * @return
     */
    boolean updata(StationBranch stationBranch);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean delete(Integer id);

    /**
     * 更新是否热门
     * @param stationBranch
     * @return
     */
    boolean updataStateHot(StationBranch stationBranch);

    /**
     * 上下线
     * @param stationBranch
     * @return
     */
    boolean updataStates(StationBranch stationBranch);

    /**
     * 插入工位房源数据
     * @param stationHouse
     * @return
     */
    boolean attributeinsert(StationHouse stationHouse);

    /**
     * 查询工位房源
     * @param station_id
     * @return
     */
    List<StationHouse> queryStationHouse(Integer station_id);

    /**
     * 逻辑删除分部房源
     * @param id
     * @return
     */
    boolean deleteAttribute(Integer id);
}
